const db = wx.cloud.database()

Page({

  /**
   * 页面的初始数据
   */
  data: {
    // list1: [
    //   {"id":1,
    //    "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E6%99%B4%E5%A4%A9.png?e=1611239491&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:iddJR0Gq_S14dj9G82NUUf6uXx8=', 
    //    "text": '晴天' },
    //   { "id":2,
    //    "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E9%98%B4%E5%A4%A9.png?e=1611239502&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:OyFfzg45R6Gka1ejsI_GKxnd6is=', 
    //     "text": '阴天' },
    //   { "id":3,
    //   "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E5%A4%A7%E9%A3%8E.png?e=1611239459&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:DY5Rw2aowVT1n7uTclN4-6sI_xc=', 
    //   "text": '大风' },
    //   { "id":4,
    //     "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E9%9B%A8%E5%A4%A9.png?e=1611239570&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:1srRpp8qExG7ubLOutyC016BxAA=', 
    //     "text": '雨天' },
    //   { "id":5,
    //     "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E9%9B%AA%E5%A4%A9.png?e=1611239538&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:MS0wgCF1ew2qTLHPhdh1bwHZDqM=', 
    //     "text": '雪天' },
    //   { "id":6,
    //     "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E5%86%B0%E9%9B%B9.png?e=1611239423&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:IFrfLXvnqgBjyEeVBlAUp7QHoLs=', 
    //     "text": '冰雹' },
    //   { "id":7,
    //     "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E5%A4%AA%E9%98%B3%E9%9B%A8.png?e=1611239478&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:GiDkrUbcWiP8MA5kPSD59pg9yYQ=', 
    //     "text": '太阳雨' },
    //   { "id":8,
    //     "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E5%A4%9A%E4%BA%91.png?e=1611238892&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:WQXJNDZFnsEbbI43zYr-2zKxz70=', 
    //     "text": '多云' },
    //   { "id":9,
    //     "icon": 'http://qmeze9tg7.hn-bkt.clouddn.com/%E9%9B%B7%E9%9B%A8%E5%A4%A9.png?e=1611239547&token=73XsRkXgSWwykX1NeBLQeF---F8Ley8iUP-0tj3b:XD6q7Z-JCv1QU95-y6DebrHisQg=', 
    //     "text":'雷雨天' },
    // ]
  },

  Color (e) {
    this.setData({
      idx:e.currentTarget.dataset.index,
    })
 },
  three:function(){
    wx.navigateTo({
      url: '/pages/indexXinqing/indexXinqing',
     })  },

     onLoad: function (options) {
      db.collection('LJL').get({
        success:res=>{
          console.log(res.data)
          this.setData({
            list1:res.data[0].list1,
          })
        }
      })
    }

})